#include "apue.h"
#include <stdio.h>
#include <fcntl.h>

int main() {
    int fd;
    char data[]= {'H', 0, 'E', 0, 'L', 0, 'L', 0, 'O', 0 };
    if ((fd= open("playground/practice_4.6.hole", O_WRONLY | O_CREAT | O_TRUNC)) < 0)
        err_sys("create file error");
        write(fd, data, 10);
}
